<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{faJournalLineBean.id}"/>
		<f:event type="preRenderView" listener="#{faJournalLineBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Fa Journal Line"/>

	<ui:define name="header">
		Fa Journal Line
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty faJournalLineBean.id}">
				Edit existing Fa Journal Line
			</c:when>
			<c:otherwise>
				Create a new Fa Journal Line
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="faJournalLineBeanFaJournalLineSysOrg" value="Sys Org:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysOrgBean.converter}" id="faJournalLineBeanFaJournalLineSysOrg" value="#{faJournalLineBean.faJournalLine.sysOrg}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysOrgBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="faJournalLineBeanFaJournalLineSysOrg" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="faJournalLineBeanFaJournalLineFaChartOfAccount" value="Fa Chart Of Account:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{faChartOfAccountBean.converter}" id="faJournalLineBeanFaJournalLineFaChartOfAccount" value="#{faJournalLineBean.faJournalLine.faChartOfAccount}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{faChartOfAccountBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="faJournalLineBeanFaJournalLineFaChartOfAccount" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="faJournalLineBeanFaJournalLineFaJournal" value="Fa Journal:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{faJournalBean.converter}" id="faJournalLineBeanFaJournalLineFaJournal" value="#{faJournalLineBean.faJournalLine.faJournal}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{faJournalBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="faJournalLineBeanFaJournalLineFaJournal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="faJournalLineBeanFaJournalLineJnDrAmt" value="Jn Dr Amt:"/>
				<h:panelGroup>
					<h:inputText id="faJournalLineBeanFaJournalLineJnDrAmt" required="true" value="#{faJournalLineBean.faJournalLine.jnDrAmt}"/>
					<h:message for="faJournalLineBeanFaJournalLineJnDrAmt" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="faJournalLineBeanFaJournalLineJnCrAmt" value="Jn Cr Amt:"/>
				<h:panelGroup>
					<h:inputText id="faJournalLineBeanFaJournalLineJnCrAmt" required="true" value="#{faJournalLineBean.faJournalLine.jnCrAmt}"/>
					<h:message for="faJournalLineBeanFaJournalLineJnCrAmt" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="faJournalLineBeanFaJournalLineJnStatusDrCr" value="Jn Status Dr Cr:"/>
				<h:panelGroup>
					<h:inputText id="faJournalLineBeanFaJournalLineJnStatusDrCr" required="true" value="#{faJournalLineBean.faJournalLine.jnStatusDrCr}"/>
					<h:message for="faJournalLineBeanFaJournalLineJnStatusDrCr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="faJournalLineBeanFaJournalLineJnLineDocCode" value="Jn Line Doc Code:"/>
				<h:panelGroup>
					<h:inputText id="faJournalLineBeanFaJournalLineJnLineDocCode" maxLength="50" value="#{faJournalLineBean.faJournalLine.jnLineDocCode}"/>
					<h:message for="faJournalLineBeanFaJournalLineJnLineDocCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{faJournalLineBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty faJournalLineBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{faJournalLineBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{faJournalLineBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>